package com.hzhq.contract.service;

import com.hzhq.contract.bean.dto.UserRoleDTO;
import com.hzhq.contract.bean.entity.UserRole;
import org.bson.types.ObjectId;

import java.util.List;

/**
 * @Author: hzhq1255
 * @Mail: hzhq1255@163.com
 * @Date: 2021/5/3 20:01
 * @Desc:
 */
public interface UserRoleService {


    List<UserRoleDTO> getUserRoleByUserId(ObjectId userId);

    List<UserRoleDTO> getUserRoleByUserName(String userName);

    List<UserRoleDTO> getUserRoleByAdminId(ObjectId adminId);

    List<UserRoleDTO> getUserRoleByAdminName(String adminName);

    UserRoleDTO saveUserRoleById(String userId, String adminId, String roleId);

    UserRoleDTO saveUserRoleByName(String userName,String adminName, String roleName);



}
